package com.zzyl.framework.interceptor;

public class ThreadLocalUser {
    private static ThreadLocal<Long> user = new ThreadLocal<>();
    public static void setUser(Long userId) {
        user.set(userId);
    }
    public static Long getUser() {
        return user.get();
    }
    public static void remove() {
        user.remove();
    }
}
